package com.cloudkinto.vo.order.returns;

import com.cloudkinto.vo.order.returns.pack.OrPackUpdateReq;
import com.cloudkinto.vo.order.returns.product.OrProductUpdateReq;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
public class OrderReturnUpdateReq {
    private Long id;

    @ApiModelProperty("仓库id")
    private Long warehouseId;
    @ApiModelProperty("0 保存到草稿 1提交")
    private int push;
    @ApiModelProperty("退件类型")
    private Integer returnType;
    @ApiModelProperty("预计到达日期")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+9")
    private Date expectedDate;
    @ApiModelProperty("参考单号")
    private String referOrderNo;
    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("退件包裹")
    private List<OrPackUpdateReq> packs;
    @ApiModelProperty("退件产品")
    private List<OrProductUpdateReq> products;
//    @ApiModelProperty("附件")
//    private List<FileRes> files;

    private String sizeUnit;
}
